resource "google_compute_backend_service" "<%= ctx[:primary_resource_id] %>" {
  name          = "<%= ctx[:vars]['backend_service_name'] %>"
  health_checks = [google_compute_http_health_check.default.id]
}

resource "google_compute_http_health_check" "default" {
  name               = "<%= ctx[:vars]['http_health_check_name'] %>"
  request_path       = "/"
  check_interval_sec = 1
  timeout_sec        = 1
}
